package com.isias.system.mapper;

import com.isias.model.dto.CourseDto;
import com.isias.model.dto.VideoDto;
import com.isias.model.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@Mapper
public interface VideoMapper {

    List<VideoDto> SelectAll(@Param("vo") SelectVideoVo videoVo);

    VideoDto SelectOne(String id);

    Integer UpdataOneById(@Param("vo") VideoVo videoVo);

    Integer RemoveOneById(String id);

    Integer Add(@Param("vo") VideoVo videoVo);

//    Integer RemoveByIds(List<String> ids);

    @Update("update video set url=#{url} where id=#{id}")
    Integer UpdateUrlById(String url,String id);


}
